Skip to contentSkip to conversation

Why do DRM_PANIC QR codes not use data: URIs?

DISCUSSION π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣 2 participants 3 messages Jun 4 – Jun 5

lore
Share & tools
lore
#0 lore raw

Why do they not use data: URIs so that it works offline?

Signature Β· 4 lines
George truly, π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣
Improve your wifi reception for free <https://www.youtube.com/watch?v=LY8Wi7XRXCA> (Libre JS version <https://redirect.invidious.io/watch?v=LY8Wi7XRXCA>)
This email does not constitute a legally binding contract
My OpenPGP key is 1BA0 FC4B 80E0 F21B 0269 8CEE 634E BF87 40C7 48BE <https://blog.velocifyer.com/pgp-certificate.asc>
#1 lore raw
Quoted 1 line Β· π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣

Why do they not use data: URIs so that it works offline?

If you set DRM_PANIC_SCREEN_QR_CODE and not DRM_PANIC_SCREEN_QR_CODE_URL, then the data will be set in raw in the QR code, and that works offline.

The drawback is that the data is not compressed, and not efficiently encoded.

So with zlib compressed, you have about ~7500 bytes of kmsg, and with raw data, it's only ~2900 bytes.

Also, even when using an URL, the panic data stays on the browser, because the data is in an URI fragment, which is not sent to the server.

Best regards,

Signature Β· 1 line
Jocelyn
#2 lore raw
Quoted 5 lines Β· Jocelyn Falempe

If you set DRM_PANIC_SCREEN_QR_CODE and not DRM_PANIC_SCREEN_QR_CODE_URL, then the data will be set in raw in the QR code, and that works offline.

The drawback is that the data is not compressed, and not efficiently encoded.

So with zlib compressed, you have about ~7500 bytes of kmsg, and with raw data, it's only ~2900 bytes.

You could encode the webpage (to decompress it) along with the compressed log in the data URI.

Signature Β· 5 lines
George truly, π•π•–π•π• π•”π•šπ•—π•ͺ𝕖𝕣
Improve your wifi reception for free <https://www.youtube.com/watch?v=LY8Wi7XRXCA> (Libre JS version <https://redirect.invidious.io/watch?v=LY8Wi7XRXCA>)
This email does not constitute a legally binding contract
My OpenPGP key is 1BA0 FC4B 80E0 F21B 0269 8CEE 634E BF87 40C7 48BE <https://blog.velocifyer.com/pgp-certificate.asc>. Please sign it!
Remember to reply all on mailing lists (this is here so i don't forget to use reply all)(If you are reading this i forgot to remove it)